package com.bristua.barcode.supplier.dao;

import com.bristua.barcode.supplier.model.TSupplier;
import com.bristua.barcode.supplier.model.condition.TSupplierExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TSupplierMapper {
    long countByExample(TSupplierExample example);

    int deleteByExample(TSupplierExample example);

    int deleteByPrimaryKey(String supplierId);

    int insert(TSupplier record);

    int insertSelective(TSupplier record);

    List<TSupplier> selectByExample(TSupplierExample example);

    TSupplier selectByPrimaryKey(String supplierId);

    int updateByExampleSelective(@Param("record") TSupplier record, @Param("example") TSupplierExample example);

    int updateByExample(@Param("record") TSupplier record, @Param("example") TSupplierExample example);

    int updateByPrimaryKeySelective(TSupplier record);

    int updateByPrimaryKey(TSupplier record);

    int batchUpdate(@Param("recordList") List<TSupplier> recordList);

    int batchInsert(@Param("recordList") List<TSupplier> recordList);

    int batchDelete(@Param("ids") String[] ids);
}